package com.asset.dispoal.evidenceType.service.converter;

import com.asset.dispoal.evidenceType.domain.db.entity.BsEvidenceType;
import com.asset.dispoal.evidenceType.dto.BsEvidenceTypeRequest;
import com.asset.dispoal.evidenceType.dto.BsEvidenceTypeResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/3/24$
 */
@Mapper
public interface EvidenceTypeConverter {


    EvidenceTypeConverter INSTANCE = Mappers.getMapper(EvidenceTypeConverter.class);

    BsEvidenceType reqToDo(BsEvidenceTypeRequest request);

    List<BsEvidenceTypeResponse> dosToRes(List<BsEvidenceType> bsEvidenceTypeResponses);
}
